<template>
  <div>
    <h3>News的子组件</h3>
    <p>姓名：{{ name }}</p>
    <p>身价：{{ price }}</p>
  </div>
</template>

<script>
export default {
  name: "Item",
  data() {
    return {
      name: "",
      price: "",
    };
  },
  mounted() {
    // console.log("News Mounted");
    const { name, price } = this.$route.params;
    this.name = name;
    this.price = price;
  },
};
</script>

<style></style>
